package com.xuebusi.gosla.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class MainController {
    private static Logger log = LoggerFactory.getLogger(MainController.class);

    /**
     * 页面跳转
     *
     * @param page 页面路径
     * @return 页面html
     */
    @GetMapping("/{page}.html")
    public String redirect(@PathVariable String page) {
        log.info(">>>> " + page + ".html");
        return page;
    }
}
